<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>博客注册</title>
    <link th:href="@{/webjars/bootstrap/4.3.1/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/sign.css}" rel="stylesheet">
</head>

<body class="text-center">
<form class="form-signin" th:action="@{/user/register}" method="post">
    <img class="mb-4"  th:src="@{/img/photo.jpg}" width="160" height="160">
    <h1 class="h4 mb-3 font-weight-normal">
        <div>
            <a href="/sign_in" th:text="#{login.signIn}">sign in</a>
            <b>·</b>
            <a href="/sign_up" th:text="#{login.signUp}">sign up</a>
        </div>
    </h1>
    <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
    <p style="color: #0056b3" th:text="${msg1}" th:if="${not #strings.isEmpty(msg1)}"></p>
    <label class="sr-only" th:text="#{login.username}">Username</label>
    <input type="text" class="form-control" name="username"
           th:placeholder="#{login.username}" required="" autofocus="">
    <label class="sr-only" th:text="#{login.password}">Password</label>
    <input type="password" class="form-control" name="password"
           th:placeholder="#{login.password}" required="">
    <div class="checkbox mb-3"></div>
    <button class="btn btn-lg btn-primary btn-block" type="submit"
            th:text="#{login.signUp}">Sign up</button>
    <p class="mt-5 mb-3 text-muted">© 2019-2020</p>
    <a class="btn btn-sm" th:href="@{/sign_up(l='zh_CN')}">中文</a>
    <a class="btn btn-sm" th:href="@{/sign_up(l='en_US')}">English</a>
</form>
</body>

</html>